package android_serialport_api;

/**
 * 使用eventbus 传输数据的结构体
 */
public class TempData {
    //5读取所有温度点同时计算温度,这个进行拆分发送
    public static final int TYPE_CALCULATE_PERSON = 0x3333;//3计算人体温度
    public static final int TYPE_READ_ALL = 0x2222;//2读取所有温度点
    public static final int TYPE_SET_SEND_RATE = 0x4444;//4设置发射率
    public static final int TYPE_READ_CONFIG = 0x1111; //查询配置

    private int eventType;
    private Object evnetObj;

    public TempData(int eventType, Object pObj) {
        this.eventType = eventType;
        this.evnetObj = pObj;
    }

    public Object getObject() {
        return this.evnetObj;
    }

    public int getType() {
        return this.eventType;
    }
}
